import { createApp } from 'vue'
import { createPinia } from 'pinia'
import persistedstate from 'pinia-plugin-persistedstate'

import App from './App.vue'
import router from './router'

//vant 样式
import 'vant/es/toast/style'

//创建应用实例
const app = createApp(App)

//创建pinia实例
const pinia = createPinia()

//pina数据持久化
pinia.use(persistedstate)

//注册pinia
app.use(pinia)

//注册路由
app.use(router)

//挂载应用
app.mount('#app')
